package com.jy.appmarket.utils;

import com.jy.appmarket.statistics.event.activateStatisticEvent;
import com.rad.statistics.android.StatisticsAgent;

import android.content.Context;

public class ActivateStatistics {

	public static void ActivateFrom(Context c, String source){
		int count = Prefs.getActiviteCount(c);
		if(count >= 100){
			return;
		}
		StatisticsAgent.onEvent(c, new activateStatisticEvent(source));
		count++;
		Prefs.saveActiviteCount(c, count);
	}
}
